using Microsoft.EntityFrameworkCore;
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;
using MatTrace;

namespace MatTrace.EntityFrameworkCore
{
    [ConnectionStringName(MatTraceDbProperties.ConnectionStringName)]
    public class MatTraceDbContext : AbpDbContext<MatTraceDbContext>, IMatTraceDbContext
    {
        /* Add DbSet for each Aggregate Root here. Example:
         * public DbSet<Question> Questions { get; set; }
         */

         public DbSet<Tmrbr001> Tmrbr001 { get; set; }
        public DbSet<Tmrbr001> Tmrbr001s { get; set; }
        public DbSet<Tmrbr001> Tmrbr096 { get; set; }
        public MatTraceDbContext(DbContextOptions<MatTraceDbContext> options) 
            : base(options)
        {

        }

        protected override void OnModelCreating(ModelBuilder builder)
        {
            base.OnModelCreating(builder);

            builder.ConfigureMatTrace();
        }
    }
}
